<?
require_once("Util.php");
class Login extends Util {
	public $tableName = "user";

	public function checkLogin($loginName, $password) {
		$sqlQuery = "SELECT * FROM " . $this->tableName . " WHERE username = '" . $loginName . "' AND password  = '" . $password . "' ";
		$loginData = $this->fetchDataRow($sqlQuery);
		return $loginData;
	}
}
?>